/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.ucenter.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class UcenterUserLogCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static UcenterUserLogCriteria create() {
		return new UcenterUserLogCriteria();
	}
	
	public static UcenterUserLogCriteria create(Column column) {
		UcenterUserLogCriteria that = new UcenterUserLogCriteria();
		that.add(column);
        return that;
    }

    public static UcenterUserLogCriteria create(String name, Object value) {
        return (UcenterUserLogCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("ucenter_user_log", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserLogCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserLogCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public UcenterUserLogCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public UcenterUserLogCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserLogCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserLogCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserLogCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserLogCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public UcenterUserLogCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public UcenterUserLogCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public UcenterUserLogCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public UcenterUserLogCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public UcenterUserLogCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public UcenterUserLogCriteria andUserLogIdIsNull() {
		isnull("user_log_id");
		return this;
	}
	
	public UcenterUserLogCriteria andUserLogIdIsNotNull() {
		notNull("user_log_id");
		return this;
	}
	
	public UcenterUserLogCriteria andUserLogIdIsEmpty() {
		empty("user_log_id");
		return this;
	}

	public UcenterUserLogCriteria andUserLogIdIsNotEmpty() {
		notEmpty("user_log_id");
		return this;
	}
       public UcenterUserLogCriteria andUserLogIdEqualTo(java.lang.Long value) {
          addCriterion("user_log_id", value, ConditionMode.EQUAL, "userLogId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserLogIdNotEqualTo(java.lang.Long value) {
          addCriterion("user_log_id", value, ConditionMode.NOT_EQUAL, "userLogId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserLogIdGreaterThan(java.lang.Long value) {
          addCriterion("user_log_id", value, ConditionMode.GREATER_THEN, "userLogId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserLogIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_log_id", value, ConditionMode.GREATER_EQUAL, "userLogId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserLogIdLessThan(java.lang.Long value) {
          addCriterion("user_log_id", value, ConditionMode.LESS_THEN, "userLogId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserLogIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_log_id", value, ConditionMode.LESS_EQUAL, "userLogId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserLogIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("user_log_id", value1, value2, ConditionMode.BETWEEN, "userLogId", "java.lang.Long", "Float");
    	  return this;
      }

      public UcenterUserLogCriteria andUserLogIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("user_log_id", value1, value2, ConditionMode.NOT_BETWEEN, "userLogId", "java.lang.Long", "Float");
          return this;
      }
        
      public UcenterUserLogCriteria andUserLogIdIn(List<java.lang.Long> values) {
          addCriterion("user_log_id", values, ConditionMode.IN, "userLogId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserLogIdNotIn(List<java.lang.Long> values) {
          addCriterion("user_log_id", values, ConditionMode.NOT_IN, "userLogId", "java.lang.Long", "Float");
          return this;
      }
	public UcenterUserLogCriteria andUserIdIsNull() {
		isnull("user_id");
		return this;
	}
	
	public UcenterUserLogCriteria andUserIdIsNotNull() {
		notNull("user_id");
		return this;
	}
	
	public UcenterUserLogCriteria andUserIdIsEmpty() {
		empty("user_id");
		return this;
	}

	public UcenterUserLogCriteria andUserIdIsNotEmpty() {
		notEmpty("user_id");
		return this;
	}
       public UcenterUserLogCriteria andUserIdEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserIdNotEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.NOT_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserIdGreaterThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserIdLessThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("user_id", value1, value2, ConditionMode.BETWEEN, "userId", "java.lang.Long", "Float");
    	  return this;
      }

      public UcenterUserLogCriteria andUserIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("user_id", value1, value2, ConditionMode.NOT_BETWEEN, "userId", "java.lang.Long", "Float");
          return this;
      }
        
      public UcenterUserLogCriteria andUserIdIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.IN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserLogCriteria andUserIdNotIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.NOT_IN, "userId", "java.lang.Long", "Float");
          return this;
      }
	public UcenterUserLogCriteria andContentIsNull() {
		isnull("content");
		return this;
	}
	
	public UcenterUserLogCriteria andContentIsNotNull() {
		notNull("content");
		return this;
	}
	
	public UcenterUserLogCriteria andContentIsEmpty() {
		empty("content");
		return this;
	}

	public UcenterUserLogCriteria andContentIsNotEmpty() {
		notEmpty("content");
		return this;
	}
       public UcenterUserLogCriteria andContentEqualTo(byte[] value) {
          addCriterion("content", value, ConditionMode.EQUAL, "content", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andContentNotEqualTo(byte[] value) {
          addCriterion("content", value, ConditionMode.NOT_EQUAL, "content", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andContentGreaterThan(byte[] value) {
          addCriterion("content", value, ConditionMode.GREATER_THEN, "content", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andContentGreaterThanOrEqualTo(byte[] value) {
          addCriterion("content", value, ConditionMode.GREATER_EQUAL, "content", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andContentLessThan(byte[] value) {
          addCriterion("content", value, ConditionMode.LESS_THEN, "content", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andContentLessThanOrEqualTo(byte[] value) {
          addCriterion("content", value, ConditionMode.LESS_EQUAL, "content", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andContentBetween(byte[] value1, byte[] value2) {
    	  addCriterion("content", value1, value2, ConditionMode.BETWEEN, "content", "byte[]", "String");
    	  return this;
      }

      public UcenterUserLogCriteria andContentNotBetween(byte[] value1, byte[] value2) {
          addCriterion("content", value1, value2, ConditionMode.NOT_BETWEEN, "content", "byte[]", "String");
          return this;
      }
        
      public UcenterUserLogCriteria andContentIn(List<byte[]> values) {
          addCriterion("content", values, ConditionMode.IN, "content", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andContentNotIn(List<byte[]> values) {
          addCriterion("content", values, ConditionMode.NOT_IN, "content", "byte[]", "String");
          return this;
      }
	public UcenterUserLogCriteria andIpIsNull() {
		isnull("ip");
		return this;
	}
	
	public UcenterUserLogCriteria andIpIsNotNull() {
		notNull("ip");
		return this;
	}
	
	public UcenterUserLogCriteria andIpIsEmpty() {
		empty("ip");
		return this;
	}

	public UcenterUserLogCriteria andIpIsNotEmpty() {
		notEmpty("ip");
		return this;
	}
        public UcenterUserLogCriteria andIpLike(java.lang.String value) {
    	   addCriterion("ip", value, ConditionMode.FUZZY, "ip", "java.lang.String", "String");
    	   return this;
      }

      public UcenterUserLogCriteria andIpNotLike(java.lang.String value) {
          addCriterion("ip", value, ConditionMode.NOT_FUZZY, "ip", "java.lang.String", "String");
          return this;
      }
      public UcenterUserLogCriteria andIpEqualTo(java.lang.String value) {
          addCriterion("ip", value, ConditionMode.EQUAL, "ip", "java.lang.String", "String");
          return this;
      }

      public UcenterUserLogCriteria andIpNotEqualTo(java.lang.String value) {
          addCriterion("ip", value, ConditionMode.NOT_EQUAL, "ip", "java.lang.String", "String");
          return this;
      }

      public UcenterUserLogCriteria andIpGreaterThan(java.lang.String value) {
          addCriterion("ip", value, ConditionMode.GREATER_THEN, "ip", "java.lang.String", "String");
          return this;
      }

      public UcenterUserLogCriteria andIpGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("ip", value, ConditionMode.GREATER_EQUAL, "ip", "java.lang.String", "String");
          return this;
      }

      public UcenterUserLogCriteria andIpLessThan(java.lang.String value) {
          addCriterion("ip", value, ConditionMode.LESS_THEN, "ip", "java.lang.String", "String");
          return this;
      }

      public UcenterUserLogCriteria andIpLessThanOrEqualTo(java.lang.String value) {
          addCriterion("ip", value, ConditionMode.LESS_EQUAL, "ip", "java.lang.String", "String");
          return this;
      }

      public UcenterUserLogCriteria andIpBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("ip", value1, value2, ConditionMode.BETWEEN, "ip", "java.lang.String", "String");
    	  return this;
      }

      public UcenterUserLogCriteria andIpNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("ip", value1, value2, ConditionMode.NOT_BETWEEN, "ip", "java.lang.String", "String");
          return this;
      }
        
      public UcenterUserLogCriteria andIpIn(List<java.lang.String> values) {
          addCriterion("ip", values, ConditionMode.IN, "ip", "java.lang.String", "String");
          return this;
      }

      public UcenterUserLogCriteria andIpNotIn(List<java.lang.String> values) {
          addCriterion("ip", values, ConditionMode.NOT_IN, "ip", "java.lang.String", "String");
          return this;
      }
	public UcenterUserLogCriteria andAgentIsNull() {
		isnull("agent");
		return this;
	}
	
	public UcenterUserLogCriteria andAgentIsNotNull() {
		notNull("agent");
		return this;
	}
	
	public UcenterUserLogCriteria andAgentIsEmpty() {
		empty("agent");
		return this;
	}

	public UcenterUserLogCriteria andAgentIsNotEmpty() {
		notEmpty("agent");
		return this;
	}
       public UcenterUserLogCriteria andAgentEqualTo(byte[] value) {
          addCriterion("agent", value, ConditionMode.EQUAL, "agent", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andAgentNotEqualTo(byte[] value) {
          addCriterion("agent", value, ConditionMode.NOT_EQUAL, "agent", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andAgentGreaterThan(byte[] value) {
          addCriterion("agent", value, ConditionMode.GREATER_THEN, "agent", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andAgentGreaterThanOrEqualTo(byte[] value) {
          addCriterion("agent", value, ConditionMode.GREATER_EQUAL, "agent", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andAgentLessThan(byte[] value) {
          addCriterion("agent", value, ConditionMode.LESS_THEN, "agent", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andAgentLessThanOrEqualTo(byte[] value) {
          addCriterion("agent", value, ConditionMode.LESS_EQUAL, "agent", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andAgentBetween(byte[] value1, byte[] value2) {
    	  addCriterion("agent", value1, value2, ConditionMode.BETWEEN, "agent", "byte[]", "String");
    	  return this;
      }

      public UcenterUserLogCriteria andAgentNotBetween(byte[] value1, byte[] value2) {
          addCriterion("agent", value1, value2, ConditionMode.NOT_BETWEEN, "agent", "byte[]", "String");
          return this;
      }
        
      public UcenterUserLogCriteria andAgentIn(List<byte[]> values) {
          addCriterion("agent", values, ConditionMode.IN, "agent", "byte[]", "String");
          return this;
      }

      public UcenterUserLogCriteria andAgentNotIn(List<byte[]> values) {
          addCriterion("agent", values, ConditionMode.NOT_IN, "agent", "byte[]", "String");
          return this;
      }
	public UcenterUserLogCriteria andCreateTimeIsNull() {
		isnull("create_time");
		return this;
	}
	
	public UcenterUserLogCriteria andCreateTimeIsNotNull() {
		notNull("create_time");
		return this;
	}
	
	public UcenterUserLogCriteria andCreateTimeIsEmpty() {
		empty("create_time");
		return this;
	}

	public UcenterUserLogCriteria andCreateTimeIsNotEmpty() {
		notEmpty("create_time");
		return this;
	}
       public UcenterUserLogCriteria andCreateTimeEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserLogCriteria andCreateTimeNotEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.NOT_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserLogCriteria andCreateTimeGreaterThan(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.GREATER_THEN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserLogCriteria andCreateTimeGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.GREATER_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserLogCriteria andCreateTimeLessThan(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.LESS_THEN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserLogCriteria andCreateTimeLessThanOrEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.LESS_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserLogCriteria andCreateTimeBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("create_time", value1, value2, ConditionMode.BETWEEN, "createTime", "java.util.Date", "String");
    	  return this;
      }

      public UcenterUserLogCriteria andCreateTimeNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("create_time", value1, value2, ConditionMode.NOT_BETWEEN, "createTime", "java.util.Date", "String");
          return this;
      }
        
      public UcenterUserLogCriteria andCreateTimeIn(List<java.util.Date> values) {
          addCriterion("create_time", values, ConditionMode.IN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserLogCriteria andCreateTimeNotIn(List<java.util.Date> values) {
          addCriterion("create_time", values, ConditionMode.NOT_IN, "createTime", "java.util.Date", "String");
          return this;
      }
}